<?php
require_once("config.php");
$sys_id = getValue('sysID');
if($myuser->logged()){
   $check_ava = false;
   $availability = $general->availability($myuser->u_id);
   if($availability !== 0) {
      foreach($availability as $avai) {
         if($avai['ava_system'] == $sys_id) {
            $check_ava = true;
         }
      }
   }
}else{
    redirect('/');
}
?>
<?php
$link_system = new Link_system($sys_id);
$links = $link_system->list_link();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="vi" lang="vi" xmlns:og="http://ogp.me/ns#" xmlns:fb="http://www.facebook.com/2008/fbml">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Hệ thống <?=$link_system->name?></title>
    <!-- Core CSS - Include with every page -->
   <link href="/home_v2/css/bootstrap.min.css" rel="stylesheet">
   <link href="/home_v2/font-awesome/css/font-awesome.css" rel="stylesheet">
   <!-- Page-Level Plugin CSS - Dashboard -->
   <link href="/home_v2/css/plugins/morris/morris-0.4.3.min.css" rel="stylesheet">
   <link href="/home_v2/css/plugins/timeline/timeline.css" rel="stylesheet">
   <!-- SB Admin CSS - Include with every page -->
   <link href="/home_v2/css/sb-admin.css" rel="stylesheet">
   <link href="/home_v2/css/custom.css" rel="stylesheet">
   <link rel="stylesheet" href="/themes/css/datepicker.css"/>
   <!-- Core Scripts - Include with every page -->
   <script src="/home_v2/js/jquery-1.10.2.js"></script>
   <script src="/home_v2/js/bootstrap.min.js"></script>
   <script src="/home_v2/js/plugins/metisMenu/jquery.metisMenu.js"></script>
   <script type="text/javascript" src="/themes/js/sudo-datepicker.js"></script>
   <script type="text/javascript" src="/themes/js/common.js"></script>
</head>
<body>
   <div id="wrapper">
      <? include 'view/common/v_common_bar.php'; ?>
      <? include 'view/link_system/link_system.php'?>
   </div>
    <!-- /#wrapper -->
    <? include 'view/common/v_common_footer.php';?>
</body>
</html>